package com.lpf.system.controller;

import com.lpf.system.service.SystemDubboService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SystemController {

    @DubboReference
    private SystemDubboService systemDubboService;

    @GetMapping("/system/{systemKey}")
    public Object getSystemInfo(@PathVariable("systemKey") String systemKey) {
        return systemDubboService.getSystemInfo(systemKey);
    }

}
